<%-- 
    Document   : agregarReporte
    Created on : 19/03/2012, 07:02:32 PM
    Author     : fjgimon
--%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://struts.apache.org/tags-nested" prefix="nested" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
  <h2>Reportes</h2>
  <logic:present name="reporte" property="idreporte">
        <html:form action="agregarReporte?method=save" onsubmit="return this"> 
        <html:hidden name="reporte" property="idreporte"></html:hidden>
          
        <table>
                <tr>
                    <td> Reportes </td>
                    <td>
                        <logic:present name="reportes">
                          <html:select property="codigoReporte">
                                <html:option value="0"> Seleccione Reporte</html:option>
                                <html:options collection="reportes" property="idreporte" labelProperty="nombre"/>
                          </html:select> 
                       </logic:present>
                    </td>
                </tr>
            </table>
        
        
     <div class="buttons">
        <button type="submit" class="positive" style="margin-left: 3%; margin-top: 2%;">
                <img src="interfaz/images/agregar.png" alt=""/>
                Añadir Reporte
        </button>
      </div>

   </html:form>
        </logic:present>
  <br>
  <br>
